
import java.io.IOException;
import java.io.PrintWriter;
import java.io.Writer;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author rm64596
 */

@WebServlet(urlPatterns="/cayke") // relacionamento do Servlet com a classe escrita "Primeiro_Servlet"

public class Primeiro_Servlet extends HttpServlet {

    
    // Sub Escrevendo a classe Pai.
    
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        
        PrintWriter writer = resp.getWriter();
        
        Console formulario = new Console();
        
        writer.print("sss");
        
        formulario.listarTodasCidade();
        
    }

}

// No projeto <Implementar> depois no .java <Executar>